<?php
	App::import("Helper","Searchable.SearchForm");
	App::import("Vendor","ListingSearch");
 	class ListingSearchFormHelper extends SearchFormHelper
 	{
 		function search_geo($field,$options)
 		{
			$oldDefaultEmpty = $this->defaultEmpty;
			$this->defaultEmpty = false;
 			$out =  $this->rangeField($field,$options,array("selectOptions"=>array("default"=>5)));
 			$this->defaultEmpty =$oldDefaultEmpty;
 			return $out;
 		}
 		protected function getGigaSearchObject()
		{
			$modelAlias = $this->model();
			if(isset($this->GigaSearchObjects[$modelAlias ]) == false)
			{
				$this->GigaSearchObjects[$modelAlias ] = new ListingSearch(ClassRegistry::getObject($modelAlias) );
			}
			return $this->GigaSearchObjects[$modelAlias ];
		}
 	}
?>